package com.yxw.live_vod_facade.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(value="OnDemandCommentVO", description="点播评论回复VO")
public class OnDemandCommentVO implements Serializable {

    @ApiModelProperty(value="评论ID")
    private Long commentId;

    @ApiModelProperty(value="评论人ID")
    private Long userId;

    @ApiModelProperty(value="评论人名称")
    private String userName;

    @ApiModelProperty(value="评论人头像")
    private String headUrl;

    @ApiModelProperty(value="评论视频ID")
    private Long videoId;

    @ApiModelProperty(value="评论时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date commentTime;

    @ApiModelProperty(value="回复评论ID")
    private Long replyCommentId;

    @ApiModelProperty(value="回复的人ID")
    private Long replyUserId;

    @ApiModelProperty(value="回复的人名称")
    private String replyUserName;

    @ApiModelProperty(value="回复的人头像")
    private String replyHeadUrl;

    @ApiModelProperty(value="评论内容")
    private String commentNote;

    @ApiModelProperty(value="置顶 0：否 1：是")
    private Integer topFlag;

    @ApiModelProperty(value="1-评论 2-回复")
    private Integer commentType;

    @ApiModelProperty(value="封面地址")
    private String coverUrl;

    @ApiModelProperty(value="回复信息")
    private List<OnDemandCommentVO> replyList;
}
